
import request from '../../utils/request'

//盘点列表
export  function getCheckList(saleOrganizationID:string,shopID:string,beginTime:string,endTime:string) {
  return request({
    url: '/sale/shopCheck/shopCheckListCs',
    method: 'get',
    params:{saleOrganizationID,shopID,beginTime,endTime}
  })
}


//删除盘点单
export  function delCheckOrder(saleOrganizationID:string,shopCheckID:number) {
  return request({
    url: `/sale/shopCheck/shopCheckDelCs`,
    method: 'get',
    params:{saleOrganizationID,shopCheckID}
   
  })
}

//查询盘点模板列表
export  function getCheckTemplateList(saleOrganizationID:string,shopID:string) {
  return request({
    url: '/sale/shopCheck/templateListBriefCs',
    method: 'get',
    params:{saleOrganizationID,shopID}
  })
}

//新建盘点单
export  function createCheckOrder(saleOrganizationID:string,shopID:string,checkTemplateID:string) {
  return request({
    url: '/sale/shopCheck/shopCheckGoodsCreateCs',
    method: 'post',
    data:{saleOrganizationID,shopID,checkTemplateID}
   
  })
}
